import {createRouter, createWebHistory} from 'vue-router'
import svgRouter from "@/routers/svg-router";

const router = createRouter({
    history: createWebHistory(),
    routes: [
        {
            path: '/',
            redirect: '/home'
        },
        {
            path: '/home',
            name: 'home',
            component: () => import('@/views/home.vue')
        },
        {
            path: '/node-express',
            name: 'nodeExpress',
            component: () => import('@/views/node-express.vue')
        },
        ...svgRouter
    ]
})
export default router
